package com.cragon.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @Description: TODO
 * @Author: ZHOUHAILONG
 * @Date: 2020年10月13日 14:57
 */
@Controller
@RequestMapping("/test")
public class TestController {
	@RequestMapping("/test.do")
	@ResponseBody
	public Object test(HttpServletRequest req, HttpServletResponse resp, String name) {
		System.out.println(name);
		System.out.println(req);
		System.out.println(resp);
		return "test";
	}

	@RequestMapping("/model.do")
	public Object model() {
		return "index";
	}
}
